//
//  TipView.h
//  LotteryClient
//
//  Created by Suny on 14-7-17.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, TipType)
{
    TipType_none,
    TipType_success,
    TipType_fail,
    TipType_alert,
    TipType_custom,
    TipType_processing
} ;

@interface TipView : UIView
AS_SINGLETON();
@property(nonatomic, strong) UIActivityIndicatorView * activityIndicator;
@property(nonatomic, strong) UIImageView * imageView;
@property(nonatomic, strong) UIImageView * bkgImageView;
@property(nonatomic, strong) UILabel * textLabel;
@property(nonatomic, strong) UIView*   coverView;
@property(nonatomic, assign) UIWindow  *overlayWindow;

- (void) hide;
- (void) removeTipView;
+ (TipView *) showWaitTipWithTextAndIndicatorNoRespondToTouchByTipView:(NSString *)string;
-(id)initWithTitle:(NSString *)title type:(TipType)type;
-(void)resetWithTitle:(NSString *)title type:(TipType)type;
+ (TipView *) showWithTitle:(NSString *)title type:(TipType)type;

@end
